<!DOCTYPE html><html lang="zh-Hans"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta name="description" content="huluo的技术博客"><meta name="keywords" content=""><meta name="author" content="kyren"><meta name="copyright" content="kyren"><title>Stay hungry, stay foolish | Kyren's Blog</title><link rel="shortcut icon" href="/melody-favicon.ico"><link rel="stylesheet" href="/css/index.css?version=1.9.0"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css?version=1.9.0"><meta name="format-detection" content="telephone=no"><meta http-equiv="x-dns-prefetch-control" content="on"><link rel="dns-prefetch" href="https://cdn.jsdelivr.net"><link rel="dns-prefetch" href="https://hm.baidu.com"><script>var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?cf87fcdbd9ab7cf93d894f7c219ae78f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();</script><meta http-equiv="Cache-Control" content="no-transform"><meta http-equiv="Cache-Control" content="no-siteapp"><script src="https://v1.hitokoto.cn/?encode=js&amp;charset=utf-8&amp;select=.footer_custom_text" defer></script><script>var GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"search.xml","languages":{"hits_empty":"找不到您查询的内容:${query}"}},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  hexoVersion: '6.2.0'
} </script><meta name="generator" content="Hexo 6.2.0"></head><body><i class="fa fa-arrow-right" id="toggle-sidebar" aria-hidden="true"></i><div id="sidebar" data-display="false"><div class="author-info"><div class="author-info__avatar text-center"><img src="https://avatars.githubusercontent.com/u/5827823?v=4"></div><div class="author-info__name text-center">kyren</div><div class="author-info__description text-center">huluo的技术博客</div><div class="follow-button"><a target="_blank" rel="noopener" href="https://github.com/huluo666">Follow Me</a></div><hr><div class="author-info-articles"><a class="author-info-articles__archives article-meta" href="/archives"><span class="pull-left">文章</span><span class="pull-right">239</span></a><a class="author-info-articles__tags article-meta" href="/tags"><span class="pull-left">标签</span><span class="pull-right">41</span></a><a class="author-info-articles__categories article-meta" href="/categories"><span class="pull-left">分类</span><span class="pull-right">29</span></a></div><hr><div class="author-info-links"><div class="author-info-links__title text-center">Links</div><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://192.168.2.212:9090/">Jira</a><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://192.168.2.212:8090/">Confluence</a><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://bloc.leniugame.com/">Leniu</a></div></div></div><nav class="no-bg" id="nav"><div id="page-header"><span class="pull-left"> <a id="site-name" href="/">Kyren's Blog</a></span><i class="fa fa-bars toggle-menu pull-right" aria-hidden="true"></i><span class="pull-right menus">   <a class="site-page" href="/">主页</a><a class="site-page" href="/essay">随笔</a><a class="site-page" href="/archives">归档</a><a class="site-page" href="/tags">标签</a><a class="site-page" href="/categories">分类</a><a class="site-page" href="/about">关于</a></span><span class="pull-right"><a class="site-page social-icon search"><i class="fa fa-search"></i><span> 搜索</span></a></span></div><div id="site-info"><div id="site-title">Kyren's Blog</div><div id="site-sub-title">Stay hungry, stay foolish</div><div id="site-social-icons"><a class="social-icon" href="https://github.com/huluo666" target="_blank" rel="noreferrer noopener nofollow"><i class="fa-github fa"></i></a></div></div></nav><div id="content-outer"><div class="layout" id="content-inner"><div class="recent-post-item article-container"><a class="article-title" href="/2017/02/07/%E6%9E%81%E5%AE%A2%E5%AF%BC%E8%88%AA/">极客导航</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-02-07</time><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/%E6%9E%81%E5%AE%A2%E5%AF%BC%E8%88%AA/">极客导航</a></span><div class="content">专属程序的导航站
http://www.gogeeks.cn/
http://geek.animebz.com/
http://www.c3z.cn/
https://www.awesomes.cn/
</div><a class="more" href="/2017/02/07/%E6%9E%81%E5%AE%A2%E5%AF%BC%E8%88%AA/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/02/04/shell%E6%88%AA%E5%9B%BE%E5%91%BD%E4%BB%A4%EF%BC%9Ascreencapture/">shell截图命令：screencapture</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-02-04</time><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/iOS/">iOS</a></span><div class="content">使用方法：
12screencapture -i test.png

执行后会调用系统默认的截图程序，也就是按cmd-shift-4出来的那个截图程序。截图完毕后，会保存到test.png中。
-i模式默认是自由模式，按一下空格键，可以在自由模式和窗口模式间切换。按下control键，截图就不会保存 ...</div><a class="more" href="/2017/02/04/shell%E6%88%AA%E5%9B%BE%E5%91%BD%E4%BB%A4%EF%BC%9Ascreencapture/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/02/03/Mac%20Nginx%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%90%AD%E5%BB%BA/">Mac Nginx服务器搭建</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-02-03</time><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/iOS/">iOS</a></span><div class="content">**1.使用Homebrew安装Nginx**
1brew install nginx



出现mkdir: /usr/local/var/log/nginx: Permission denied问题
123sudo chown -R &quot;$USER&quot;:admin /usr/lo ...</div><a class="more" href="/2017/02/03/Mac%20Nginx%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%90%AD%E5%BB%BA/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2017/01/28/iOS%E5%BC%80%E5%8F%91%E8%80%85%E6%8C%87%E5%8D%97%EF%BC%9A%E4%BB%8EObjective-C%E5%88%B0Swift%E7%9A%84%E5%AD%A6%E4%B9%A0/">iOS开发者指南：从objectivec到Swift的学习</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2017-01-28</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/iOS/">iOS</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/Swift/">Swift</a></span><div class="content">iOS开发者指南：从objectivec到Swift的学习【译】
原文 https://www.toptal.com/swift/from-objectivec-to-swift
​     2008年，苹果宣布并发布了iPhone SDK 2.0。这一事件又引发了软件开发的又一次革命，诞生了一批新 ...</div><a class="more" href="/2017/01/28/iOS%E5%BC%80%E5%8F%91%E8%80%85%E6%8C%87%E5%8D%97%EF%BC%9A%E4%BB%8EObjective-C%E5%88%B0Swift%E7%9A%84%E5%AD%A6%E4%B9%A0/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/12/28/Mac%E5%9B%BE%E7%89%87%E5%8E%8B%E7%BC%A9_shell/">图片无损压缩工具</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-12-28</time><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/iOS/">iOS</a></span><div class="content">一、Mac shell命令单张&#x2F;批量修改图片尺寸
12sips -Z 640 *.jpg //批量 604*640sips -z 768 1024 example.png//单张 760*1024

More From：http://www.ainotenshi.org/818/resiz ...</div><a class="more" href="/2016/12/28/Mac%E5%9B%BE%E7%89%87%E5%8E%8B%E7%BC%A9_shell/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/12/22/PingBox%20-Mac%E6%89%B9%E9%87%8Fping%E5%B7%A5%E5%85%B7/">PingBox -Mac批量ping工具</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-12-22</time><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/iOS/">iOS</a></span><div class="content">PingBox是一款Mac平台小巧的批量Ping工具 ,允许Ping多个主机名和IP 地址的一个小工具, 并且可以在同一个显示器上观看结果。支持ping结果排序。
PS:样式仿superping，由于superping免费版不支持多个IP，使用发现CPU占用率近100%，而Mac上又没有其它替代工具 ...</div><a class="more" href="/2016/12/22/PingBox%20-Mac%E6%89%B9%E9%87%8Fping%E5%B7%A5%E5%85%B7/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/12/18/APP%E5%BC%80%E5%8F%91%E6%8E%A5%E5%8F%A3%E6%95%B0%E6%8D%AE%E6%A8%A1%E6%8B%9F/">APP开发接口数据模拟</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-12-18</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/%E5%B7%A5%E5%85%B7/">工具</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/%E5%B7%A5%E5%85%B7/">工具</a></span><div class="content">测试API的模拟主要分以下2块

1.模拟服务器 
2.模拟测试数据

一、模拟服务器解决方案1）.使用Apache开启 Web ServerMac自己集成了Python和Apache
启动：sudo apachectl start
123停止：sudo apachectl stop重启：sudo  ...</div><a class="more" href="/2016/12/18/APP%E5%BC%80%E5%8F%91%E6%8E%A5%E5%8F%A3%E6%95%B0%E6%8D%AE%E6%A8%A1%E6%8B%9F/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/12/02/AutoLayout/">AutoLayout 库</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-12-02</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/iOS/">iOS</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/AutoLayout/">AutoLayout</a></span><div class="content">https://github.com/robertmryan/autolayout-category
https://github.com/danramteke/DRAutolayout
https://github.com/robotmedia/Lyt
https://github.com/mob ...</div><a class="more" href="/2016/12/02/AutoLayout/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/11/28/Visual%20Studio%20Code%20/">Visual Studio Code</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-11-28</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/%E7%BC%96%E8%BE%91%E5%99%A8/">编辑器</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/%E5%B7%A5%E5%85%B7/">工具</a></span><div class="content">fn+F1 或 ⌘+Shift+P: 打开命令面板。
https://lzw.me/a/vscode-visual-studio-code-shortcut.html
将ctr键换成⌘键
Visual Studio Code有哪些你常用的插件？
插件
Live HTML Previewer
html ...</div><a class="more" href="/2016/11/28/Visual%20Studio%20Code%20/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2016/11/18/mac%20%E7%BB%88%E7%AB%AF%E4%B8%8B%E8%BF%90%E8%A1%8Cshell:applescript%E7%AD%89%E8%84%9A%E6%9C%ACPermission%20denied%E9%97%AE%E9%A2%98/">Mac 终端下运行shell/applescript等脚本Permission denied问题</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2016-11-18</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/shell/">shell</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/shell/">shell</a></span><div class="content">运行脚本
1、写好自己的 脚本，比如aa.sh 
2、打开终端 执行，方法一： 输入命令    .&#x2F;aa.sh     ,方法二：直接把 aa.sh 拖入到终端里面。
Permission denied问题
修改该文件aa.sh 的权限 ：使用命令： chmod 777 aa.sh 。
或 ...</div><a class="more" href="/2016/11/18/mac%20%E7%BB%88%E7%AB%AF%E4%B8%8B%E8%BF%90%E8%A1%8Cshell:applescript%E7%AD%89%E8%84%9A%E6%9C%ACPermission%20denied%E9%97%AE%E9%A2%98/#more" style="margin-top: 14px">阅读更多</a><hr></div><nav id="pagination"><div class="pagination"><a class="extend prev" rel="prev" href="/page/13/"><i class="fa fa-chevron-left"></i></a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/13/">13</a><span class="page-number current">14</span><a class="page-number" href="/page/15/">15</a><span class="space">&hellip;</span><a class="page-number" href="/page/24/">24</a><a class="extend next" rel="next" href="/page/15/"><i class="fa fa-chevron-right"></i></a></div></nav></div></div><footer><div class="layout" id="footer"><div class="copyright">&copy;2022 By kyren</div><div class="framework-info"><span>驱动 - </span><a target="_blank" rel="noopener" href="http://hexo.io"><span>Hexo</span></a><span class="footer-separator">|</span><span>主题 - </span><a target="_blank" rel="noopener" href="https://github.com/Molunerfinn/hexo-theme-melody"><span>Melody</span></a></div><div class="footer_custom_text">hitokoto</div><div class="busuanzi"><script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><span id="busuanzi_container_site_uv"><i class="fa fa-user"></i><span id="busuanzi_value_site_uv"></span><span></span></span><span class="footer-separator">|</span><span id="busuanzi_container_site_pv"><i class="fa fa-eye"></i><span id="busuanzi_value_site_pv"></span><span></span></span></div></div></footer><i class="fa fa-arrow-up" id="go-up" aria-hidden="true"></i><script src="https://cdn.jsdelivr.net/npm/animejs@latest/lib/anime.min.js"></script><script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-animate@latest/velocity.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-ui-pack@latest/velocity.ui.min.js"></script><script src="/js/utils.js?version=1.9.0"></script><script src="/js/fancybox.js?version=1.9.0"></script><script src="/js/sidebar.js?version=1.9.0"></script><script src="/js/copy.js?version=1.9.0"></script><script src="/js/fireworks.js?version=1.9.0"></script><script src="/js/transition.js?version=1.9.0"></script><script src="/js/scroll.js?version=1.9.0"></script><script src="/js/head.js?version=1.9.0"></script><script src="/js/search/local-search.js"></script><script>if(/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent)) {
  $('#nav').addClass('is-mobile')
  $('footer').addClass('is-mobile')
  $('#top-container').addClass('is-mobile')
}</script><div class="search-dialog" id="local-search"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章"></div></div></div><hr><div id="local-search-results"><div id="local-hits"></div><div id="local-stats"><div class="local-search-stats__hr" id="hr"><span>由</span> <a target="_blank" rel="noopener" href="https://github.com/wzpan/hexo-generator-search" style="color:#49B1F5;">hexo-generator-search</a>
 <span>提供支持</span></div></div></div><span class="search-close-button"><i class="fa fa-times"></i></span></div><div class="search-mask"></div></body></html>